<template>
  <div>
    <h2>事件绑定</h2>
    <p>{{age}}</p>

    <button @click="changeAge">+1</button>
  </div>
</template>

<script>
export default {
 data () {
  return {
    age: 20
  }
 },
 methods : {
  changeAge () {
    this.age--
    console.log(123);
  }
}
};

</script>

<style>

</style>